//
//  ZDTabBar.m
//  ZHIDOU
//
//  Created by 向礼 on 2018/12/18.
//  Copyright © 2018 向礼. All rights reserved.
//

#import "ZDTabBar.h"

@implementation ZDTabBar

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
    }
    return self;
}


- (void)layoutSubviews
{
    [super layoutSubviews];
    CGFloat offset = 6.0;
    for (UITabBarItem *item in self.items) {
        //item.imageInsets = UIEdgeInsetsMake(offset, 0, -offset, 0);
        item.imageInsets=UIEdgeInsetsMake(6, 0,-6, 0);
        item.titlePositionAdjustment = UIOffsetMake(0, -offset);
    }
}
@end
